package cn.openbiotoken.android.facetoken;

import android.content.Context;
import android.net.Uri;

import androidx.annotation.NonNull;

import com.nnf.nnfkitlib.NNF_FaceInfo;

import cn.openbiotoken.BiometricsDetector;
import cn.openbiotoken.BiometricsFeatureExtractor;
import cn.openbiotoken.android.UriBiometricsFactory;

public class HomoSapiensFaceUriBiometricsFactory extends UriBiometricsFactory<NNF_FaceInfo, float[]> {

    public HomoSapiensFaceUriBiometricsFactory(@NonNull final Context context) {
        super(context);
    }

    @NonNull
    @Override
    public BiometricsDetector<NNF_FaceInfo> createDetector(@NonNull Uri source) {
        return new HomoSapiensUriFaceDetector(context, source);
    }

    @Override
    @NonNull
    public BiometricsFeatureExtractor<float[]> createFeatureExtractor(@NonNull final Uri source) {
        return new HomoSapiensUriFaceFeatureExtractor(context, source);
    }
}
